performanceTimer

Class: com.microstrategy.web.app.taglibs.PerformanceTimerTag

Usage:

This custom tag is designed to be used together with the {@link LoggingTag} and {@link PerformanceStringTag}. It takes care of generating the required JavaScript code for being able to measure up the time a page takes for being rendered.
In the following example, the initialize action defines all the JavaScript methods and variables that will be required for the client rendering measurement to take place. The start action will generate the JavaScript required for starting the timer that will measure up the time the page will take in rendering. The performanceString tag will take care of stopping this timer and recording the results. The logTimes action will take care of enabling the whole logging feature in the JavaScript code, as well as recording the name of the page that will be analyzed:
 <html>
   <web:performanceTimer action="initialize" runat="server" />
   <web:performanceTimer action="start" runat="server" />
   <body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="<web:performanceString runat="server" />">
     ...
     <script>
       <web:logging action="logTimes" runat="server" />
     </script>
     ...
   </body>
 </html>
 


Name Required? Description
action true Indicates the action to be peformed by this tag, which indicates the type of JavaScript code that it will generate.
Usage:
The possible values of this attribute include:
  • initialize> if the initialization has been requested
  • start if the start timer has been asked for
  • stop if the timer should now be stopped and the information for the processing time for this counter should be collected.
  • logResults false Indicates if the results should be logged at this time or not.
    Usage:
    This attribute should be specified as a boolean. If the value is True it means all the information from the timers that were stopped and recorded will be organized on a message, html page report of file, as indicated by the user on the application's configuration file.
    pageId false Indicates the identifier for the page to be analyzed.
    Usage:
    The log results obtained will make reference to this identifier, for it to be possible to collect multiple pages analyzed multiple times.
    runat true Indicates that the ASP.Net control should be processed on the server